#include "HelpView.hpp"
#include <FL/Fl_Button.H>
#include <FL/Fl_Return_Button.H>
#include <iostream>
using namespace m3g_viewer;

static
void callback_quit (Fl_Window* w, void* v)
{
    Fl_Window* window = (Fl_Window*)v;
    window->hide ();
}

HelpView:: HelpView () : Fl_Window(180,220)
{
    Fl_Button* button = new Fl_Button (10, 10, 160, 160);
    button->label ("M3G Viewer\ntueda(a)wolf.dog.cx,\nall right reserved.");
    button->box (FL_FLAT_BOX);

    Fl_Return_Button* ret = new Fl_Return_Button (110, 180, 60, 30);
    ret->label ("OK");
    ret->callback ((Fl_Callback*)callback_quit, this);
    
    end ();
}


HelpView:: ~HelpView ()
{


}

